package com.kifas.model.xml;

import java.io.Serializable;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * @author brainmaster
 * 
 */

@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class UserModel implements Serializable {

	private static final long serialVersionUID = 748546253449767469L;

	private String username;

	private String password;

	private String firstName;

	private String lastName;

	private String email;

	private String createdBy;
	
	private List<GroupModel> groups;

	public UserModel() {
	}

	public UserModel(String username, String password, String firstName, String lastName, String email, String createdBy) {
		this.username = username;
		this.password = password;
		this.firstName = firstName;
		this.lastName = lastName;
		this.email = email;
		this.createdBy = createdBy;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public String getCreatedBy() {
		return createdBy;
	}

	public void setGroups(List<GroupModel> groups) {
		this.groups = groups;
	}

	public List<GroupModel> getGroups() {
		return groups;
	}

}
